package my.assistant.homecashmanager.tally.domain;

import java.util.List;

import my.assistant.homecashmanager.tally.data.JournalAccount;

import org.assistant.common.exception.GetFromDBException;
import org.assistant.common.exception.SaveIntoDBException;

public interface TallyDomain {
	/**
	 * 获取收支流水账
	 * 
	 * @return
	 * @throws GetFromDBException
	 */
	public List<JournalAccount> getJournalAccountList()
			throws GetFromDBException;

	/**
	 * 增加一条收支记录
	 * 
	 * @param journalAccount
	 * @throws SaveIntoDBException
	 */
	public void insertJournalAccount(JournalAccount journalAccount)
			throws SaveIntoDBException;

	/**
	 * 修改一条收支记录
	 * 
	 * @param journalAccount
	 * @throws SaveIntoDBException
	 */
	public void updateJournalAccount(JournalAccount journalAccount)
			throws SaveIntoDBException;
}
